/**
 * 采购接口
 * 2022-09-08
 * xhd
 *
 */
import React from 'react'

// 采购列表
export async function apiGetstockPurchasePage(params) {
    return await React.$post('/admin/stockPurchaseNote/page', params);
}

//删除采购订单
export async function apiStockPurchaseDelet(params) {
    return await React.$post('/admin/stockPurchaseNote/del', params);
}

//新增采购订单
export async function apiStockPurchaseAdd(params) {
    return await React.$post('/admin/stockPurchaseNote/add', params);
}

//查看采购订单
export async function apiStockPurchaseView(params) {
    return await React.$post('/admin/stockPurchaseNote/view', params);
}

//采购单明细新增
export async function apiStockPurchaseDetailsAdd(params) {
    return await React.$post('/admin/stockPurchaseDetails/add', params);
}

//采购单明细删除
export async function apiStockPurchaseDetailsDelet(params) {
    return await React.$post('/admin/stockPurchaseDetails/del', params);
}

//下推采购单
export async function apiAddStockInLibrary(params){
    return await React.$postJson('/admin/stockInLibrary/addStockInLibrary/Json',params);
}

//修改采购单商品
export async function apiStockPurchaseDetailsEdit(params) {
    return await React.$post('/admin/stockPurchaseDetails/edit', params);
}

// 打印
export async function apiPrintInLibraryOrder(params) {
    return await React.$post('/admin/stockInLibrary/printInLibraryOrder', params);
}

// 采购关单
export async function apiStockPurchaseNoteOrderCancel(params) {
    return await React.$post('/admin/stockPurchaseNote/orderCancel', params);
}
